home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 640 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.8 KB

  1. Path: library.erc.clarkson.edu!rpi!not-for-mail
  2. From: hwang@csd.uwo.ca (Handong Wang)
  3. Newsgroups: comp.lang.c++.moderated,comp.lang.c++
  4. Subject: Re: Meaning of the specifier volatile?
  5. Date: 5 Jan 1996 12:20:45 -0000
  6. Organization: Department of Computer Science, University of Western Ontario, London, Ontario, Canada
  7. Sender: cppmods@netlab.cs.rpi.edu
  8. Approved: Dietmar.Kuehl@uni-konstanz.de
  9. Message-ID: <4cj52t$q61@netlab.cs.rpi.edu>
  10. References: <4c9740$27n@netlab.cs.rpi.edu>
  11. NNTP-Posting-Host: netlab.cs.rpi.edu
  12.  
  13. X-Original-Date: 5 Jan 1996 03:38:08 GMT
  14.  
  15. In article <4c9740$27n@netlab.cs.rpi.edu>,
  16. Srinivas Vobilisetti  <srv@cs.wayne.edu> wrote:
  17. >X-Original-Date: 31 Dec 1995 01:42:27 GMT
  18. >
  19. >Hello,
  20. >
  21. >I referred to various books on C++ including The C++ Programming Language
  22. >-Bjarne Stroustrup, C++ Primer -Stanley Lipmann, etc.  Nowhere i could find
  23. >exact meaning of the specifier volatile. Thanks in advance for your help. I
  24. >would appreciate the reply at my email address srv@cs.wayne.edu
  25. >
  26. >Thanks
  27. >Srinivas
  28. >srv@cs.wayne.edu
  29.  
  30. Basically the specifier 'volatile' means that the variable or object
  31. may be corrupted by some external sources, e.g. hardware interrupt.
  32. For example, you can write
  33.     volative const int some_int;
  34. which means some_int may be changed by some external "powers", but not
  35. your program.
  36.  
  37. Hope this will help
  38.  
  39. Handong Wang
  40. Department of Computer Science
  41. Univ. of Western Ontario
  42. London Ontario 
  43. Canada
  44. -- 
  45. Handong Wang
  46. Department of Computer Science
  47. University of Western Ontario
  48. London, Ontario Canada
  49.  
  50.     [ comp.lang.c++.moderated is a moderated newsgroup.  Submit articles ]
  51.     [  to <c++-submit@netlab.cs.rpi.edu>.  The moderation policy can be  ]
  52.     [   retrieved from <http://netlab.cs.rpi.edu/~cppmods/guide.html>.   ]
  53.     [    Moderators can be reached at: c++-request@netlab.cs.rpi.edu.    ]
  54.